<tpl var layoutBody={ />
<div data-identity="sys:user" data-table="sys_user">
	<div class="layui-breadcrumb">
		<a href="/manage/index.jspx">首页</a>
		<a href="javascript:;">
			<cite>修改密码</cite>
		</a>
	</div>
	<hr>
	<fieldset class="layui-elem-field">
		<legend>修改密码</legend>
		<div class="layui-field-box">
			<form class="layui-form" action="save.json?oper=update" lay-filter="mSysUserForm">
				<div class="layui-form-item" data-type="varchar" data-isnull="YES" data-name="password">
					<label class="layui-form-label">登录密码：</label>
					<div class="layui-input-block">
						<input type="password" name="password" placeholder="请输入登录密码" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="YES" data-name="password">
					<label class="layui-form-label">重复密码：</label>
					<div class="layui-input-block">
						<input type="password" name="password_retry" placeholder="请输入重复密码" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button class="layui-btn" lay-submit lay-filter="mSysUserForm">立即提交</button>
					</div>
				</div>
			</form>
		</div>
	</fieldset>
</div>
<tpl }; />

<tpl var layoutScript={ />
<script type="text/javascript">
	layui.config({
		base: '${webCdn}/plugins/layui/modules/'
	}).extend({
		http: 'http/http.min',
		message: 'message/message.min'
	}).use(['element', 'message', 'http', 'form'], function () {
		// 绑定表单提交事件
		layui.form.on('submit(mSysUserForm)', function (data) {
			layui.http.post('pwd/save.json', data.field, function (res) {
				layui.message.success(res.message);
			});

			return false;
		});
	});
</script>
<tpl }; />
<tpl include( "../../tpl/layout-scroll.html" ,{identity: "home" ,layoutBody:layoutBody,layoutScript:layoutScript}){} />